php forum
php mysql forum
php mysql smarty
 
Topic Options
#317585 - 09/24/08 05:39 PM [7.3] Viewing MySQL logfiles made easier
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
If you view a logfile, and you want to delete it, you have to search the link again in the list, and hit the remove link there.

I've added a remove link to enable removing the current logfile being viewed. I also added an anchor to the html, so if you view a logfile, you go to the correct spot on the page.

/admin/logs.php

Find:
Php Code:
 $view .= "<tr><td colspan=\"3\" class=\"autorow-header-1 bold\">{$ubbt_lang['DETAILS']} $file</td></tr>";
 


Replace with:
Php Code:
 $view .= "<tr><td colspan=\"2\" class=\"autorow-header-1 bold\">{$ubbt_lang['DETAILS']} <a name=\"show\"></a>$file</td>";
	$view .= "<td colspan=\"2\" class=\"autorow-header-1 bold\" align=\"right\">";
	$view .= "[<a href=\"{$config['BASE_URL']}/admin/logs.php?action=remove&amp;file={$file}\">{$ubbt_lang['REMOVE']}]</a></tr>";
 


open /templates/default/admin/logs.tmpl

Find:
Php Code:
[<a href="{$config['BASE_URL']}/admin/logs.php?action=view&amp;file={$log[$i]['name']}">{$ubbt_lang['VIEW']}</a>] &middot;
 


replace with:
Php Code:
[<a href="{$config['BASE_URL']}/admin/logs.php?action=view&amp;file={$log[$i]['name']}#show">{$ubbt_lang['VIEW']}</a>] &middot;  
_________________________

Top
#317589 - 09/27/08 09:57 PM Re: [7.3] Viewing MySQL logfiles made easier [Re: blaaskaak]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Very nice smile

It would be nice too, to eventually have select boxes to select more than one log file to remove - there can be hundreds and if you want to delete all those older than a month you will be clicking for a while smile

On slower servers I can sometimes click 2 before the page refreshes smile
_________________________
- Allen wavey
- What Drives You?

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks